package testpackage;

import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class Test {
	
	private Boolean garageManager=false;
	private Boolean permissionShiftTimeOrder=false;
	private Boolean	permissionDeleteOrder=false;
	
	private Properties prop=new Properties();
	
	public Test(){
		try{
			prop.load(new FileReader("test.properties"));
		}catch(IOException e){
			
		}
				
	}
	
	public Boolean getGarageManager(){
		if(prop.get("garageManager").equals("true")){
			garageManager=true;
		}
		return garageManager;
	}

	public Boolean getPermissionShiftTimeOrder(){
		if(prop.get("shiftTimeOrder").equals("true")){
			permissionShiftTimeOrder=true;
		}
		return permissionShiftTimeOrder;
	}
	
	public Boolean getPermissionDeleteOrder(){
		if(prop.get("deleteOrder").equals("true")){
			permissionDeleteOrder=true;
		}
		return permissionDeleteOrder;
	}
	

}
